package com.h3c.nem.service;

import com.h3c.nem.dto.SdEnumCodeDTO;

import java.util.List;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: ISdEnumCodeService
 *
 * @Author: l22886
 * @Date: 2022-01-19
 * Description: sd_enum_code service
 * Version: 1.0
 */
public interface ISdEnumCodeService {

    /**
     * @title: selectFuzzyByDto
     * @description: 模糊查询操作
     * @params: [ dto ]
     * @return: java.util.List
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public List<SdEnumCodeDTO> selectFuzzyByDto(SdEnumCodeDTO dto);

    /**
     * @title: selectByDto
     * @description: 精确查询操作
     * @params: [ dto ]
     * @return: java.util.List
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public List<SdEnumCodeDTO> selectByDto(SdEnumCodeDTO dto);

    /**
     * 通过enumCode查询结果集
     * @param dto 传入code
     * @return
     */
    List<SdEnumCodeDTO> getEnumByCode(SdEnumCodeDTO dto);

    /**
     * @title: insertDto
     * @description: 插入操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer insertDto(SdEnumCodeDTO dto);

    /**
     * @title: updateDto
     * @description: 修改操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer updateDto(SdEnumCodeDTO dto);

    /**
     * @title: deleteDto
     * @description: 删除操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer deleteDto(SdEnumCodeDTO dto);
}
